//
//  UTOTPConfiguration.h
//  OTPGenerator
//
//  Created by 毛韶谦 on 2017/3/30.
//  Copyright © 2017年 wutan. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UTOTPConfiguration : NSObject

@property(nonatomic, strong, readonly) NSData *secret;
@property(nonatomic, assign, readonly) uint32_t digits;
@property(nonatomic, assign, readonly) uint32_t digitsMod;
/*
 * 默认时间
 */
@property(nonatomic, assign) NSUInteger defaultInterval;

-(instancetype)initWithSecret:(NSData*)secret;
-(instancetype)initWithSecret:(NSData*)secret digits:(uint32_t)digits;

-(instancetype)init NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
